On Infinitely Precise Rounding for Division, Square Root, Reciprocal and Square Root Reciprocal

نویسندگان

  • Cristina Iordache
  • David W. Matula
چکیده

Quotients, reciprocals, square roots and square root reciprocals all have the property that infinitely precise p-bit rounded results for p-bit input operands can be obtained from approximate results of bounded accuracy. We investigate lower bounds on the number of bits of an approximation accurate to a unit in the last place sufficient to guarantee that correct round and sticky bits can be determined. Known lower bounds for quotients and square roots are given and/or sharpened, and a new lower bound for root reciprocals is proved. Specifically for reciprocals, quotients and square roots, tight bounds of order 2p+ O(1) are presented. For infinitely precise rounding of the root reciprocal a lower bound can be found at 3p + O(1), but exhaustive testing for small sizes of the operand suggests that in practice (2+ )p for small is usually sufficient. Algorithms can be designed for obtaining the round and sticky bits based on the bit pattern of an approximation computed to the required accuracy. We show that some improvement of the known lower bound for reciprocals and division is achievable at the cost of somewhat more complex hardware for rounding. Tests for the exactness of the quotient and square root are also provided.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Implementation of the reciprocal square root in MPFR

We describe the implementation of the reciprocal square root — also called inverse square root — as a native function in the MPFR library. The difficulty is to implement Newton’s iteration for the reciprocal square root on top’s of GNU MP’s mpn layer, while guaranteeing a rigorous 1/2 ulp bound on the roundoff error. The reciprocal square root is an important function in 3D graphics, for the no...

متن کامل

High-Speed Double-Precision Computation of Reciprocal, Division, Square Root and Inverse Square Root

A new method for the high-speed computation of double-precision floating-point reciprocal, division, square root, and inverse square root operations is presented in this paper. This method employs a second-degree minimax polynomial approximation to obtain an accurate initial estimate of the reciprocal and the inverse square root values, and then performs a modified Goldschmidt iteration. The hi...

متن کامل

Improving Goldschmidt Division, Square Root, and Square Root Reciprocal

ÐThe aim of this paper is to accelerate division, square root, and square root reciprocal computations when the Goldschmidt method is used on a pipelined multiplier. This is done by replacing the last iteration by the addition of a correcting term that can be looked up during the early iterations. We describe several variants of the Goldschmidt algorithm, assuming 4-cycle pipelined multiplier, ...

متن کامل

Isolating Critical Cases for Reciprocals Using Integer Factorization

One approach to testing and/or proving correctness of a floating-point algorithm computing a function is based on finding input floating-point numbers such that the exact result is very close to a “rounding boundary”, i.e. a floating-point number or a midpoint between them. In the present paper we show how to do this for the reciprocal function by utilizing prime factorizations. We present the ...

متن کامل

Density results on floating-point invertible numbers

Let Fk denote the k-bit mantissa "oating-point (FP) numbers. We prove a conjecture of Muller according to which the proportion of numbers in Fk with no FP-reciprocal (for rounding to the nearest element) approaches 2 − 2 log 3 ≈ 0:06847689 as k → ∞. We investigate a similar question for the inverse square root. c © 2002 Elsevier Science B.V. All rights reserved.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 1999